-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting all files in trash now only sends a single flag #5641
Conversation
It's late... getting all the issues numbers wrong... |
Setting to OC6 if this fix/workaround is acceptable. |
Great 👍 |
Test passed. |
@PVince81 Thanks for taking the initiative here! But I would really like to hear @jancborchardt opinion. Basically we now have 4 ways to remove files permanently from the trash bin:
(1) remove a single file by the delete button on the right side.
(3) select all with the "group select" next to the "Name" column header and than click the delete button on the right side I'm not generally against it. But if I look at all the options to delete a file permanently it also looks a bit crowded. As an alternative wouldn't it be possible to implement a simple infinite scroll just for the trash bin? For the trash bin we don't have all the corner cases we have for the regular files view. @PVince81 I know you already played around with it, what do you think? |
Hm, I’m really hesitant as to pulling this in in the beta phase, especially Also, design-wise – we don’t really need »empty trash« at all and I think So I’m against this. It’s not just a simple fix for helping people delete On Thu, Oct 31, 2013 at 10:59 AM, Björn Schießle
|
The problem with infinite scrolling is that it needs many changes in the way how files are returned, changes that are bigger than just that empty trash button (and some of them involve touching filelist.js from the files package). If the trash is indeed automatically cleant like the version apps does then there is probably no need for this now and the two users with too many files should be able to not exceed their quotas. |
Right. But there is one problem which we could solve with the button: If you have really a lot of files in one folder of the trash your web interface will become unresponsive. |
Now thinking of the infinite scroll, we might still need that backend part I implemented in this PR. |
So basically "select all" + "delete" would do the same under the hood as what my "empty trash" button now does. |
Right, I was thinking that as well – the select all + delete action should On Thu, Oct 31, 2013 at 11:38 AM, Vincent Petry [email protected]:
|
Yes, now the trouble might be that clicking "Select all" might take ages with 12000 files as it needs to update all the DOM elements. Still, if the user has patience, deleting this way might work. So, would this PR be acceptable if I use "deleteall=true" if the user selects everything ? What if new files have appeared in the trashbin that weren't visible before ? (this is a general issue that we'll have later with infinite scrolling as well) |
Together with an infinite scroll?
with an infinite scroll we wouldn't need to select all 12000 files but only the visible ones so that it looks like everything is selected.
I think that's a real corner case that a user browses his trash bin and deletes some files at the same time at the desktop client. I think it is acceptable if this files doesn't show up before a reload. With respect to the "delete all" operation I would just delete all files which are in the trash bin when the operation gets triggered. Instead of a file list I would send the delete all flag to the ajax method which than cleans both the trash and the database. |
To prevent having to send the list of all files for deletion, only set a flag "allfiles". This should make it a bit smoother when deleting 5000+ files. Also fixes some "empty trash" message issues.
I've rebased this and changed the description. Now it sends "allfiles=true" when deleting all files, which should make deleting a bit quicker. |
Test passed. |
Works great is a lot faster ... 👍 |
Two thumbs ups. Can we merge this? @PVince81 |
I'd like @schiesbn to have a quick look to make sure the code (especially PHP) is ok. |
looks good! |
Deleting all files in trash now only sends a single flag
To prevent having to send the list of all files for deletion, only set a flag "allfiles". This should make it a bit smoother when deleting 5000+ files.
Also fixes some "empty trash" message issues.